package com.example.controller;

import com.example.handle.MyException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017-4-24.
 */
@RestController
public class ErrorController {
    @RequestMapping("/jsonError")
    public void errorTest() throws MyException{
        throw new MyException("错误信息，test");
    }
}
